﻿using System;

// Token: 0x020002CF RID: 719
public class CharFemaleFile : global::CharFile
{
	// Token: 0x06001163 RID: 4451 RVA: 0x0008D28C File Offset: 0x0008B48C
	public CharFemaleFile() : base("【HoneySelectCharaFemale】", "chara/female/")
	{
		global::CharFileInfoCustomFemale charFileInfoCustomFemale = new global::CharFileInfoCustomFemale();
		this.femaleCustomInfo = charFileInfoCustomFemale;
		base.customInfo = charFileInfoCustomFemale;
		global::CharFileInfoClothesFemale charFileInfoClothesFemale = new global::CharFileInfoClothesFemale();
		this.femaleClothesInfo = charFileInfoClothesFemale;
		base.clothesInfo = charFileInfoClothesFemale;
		global::CharFileInfoCoordinateFemale charFileInfoCoordinateFemale = new global::CharFileInfoCoordinateFemale();
		this.femaleCoordinateInfo = charFileInfoCoordinateFemale;
		base.coordinateInfo = charFileInfoCoordinateFemale;
		global::CharFileInfoStatusFemale charFileInfoStatusFemale = new global::CharFileInfoStatusFemale();
		this.femaleStatusInfo = charFileInfoStatusFemale;
		base.statusInfo = charFileInfoStatusFemale;
		global::CharFileInfoParameterFemale charFileInfoParameterFemale = new global::CharFileInfoParameterFemale();
		this.femaleParameterInfo = charFileInfoParameterFemale;
		base.parameterInfo = charFileInfoParameterFemale;
	}

	// Token: 0x1700026E RID: 622
	// (get) Token: 0x06001164 RID: 4452 RVA: 0x0008D310 File Offset: 0x0008B510
	// (set) Token: 0x06001165 RID: 4453 RVA: 0x0008D318 File Offset: 0x0008B518
	public global::CharFileInfoCustomFemale femaleCustomInfo { get; set; }

	// Token: 0x1700026F RID: 623
	// (get) Token: 0x06001166 RID: 4454 RVA: 0x0008D324 File Offset: 0x0008B524
	// (set) Token: 0x06001167 RID: 4455 RVA: 0x0008D32C File Offset: 0x0008B52C
	public global::CharFileInfoClothesFemale femaleClothesInfo { get; set; }

	// Token: 0x17000270 RID: 624
	// (get) Token: 0x06001168 RID: 4456 RVA: 0x0008D338 File Offset: 0x0008B538
	// (set) Token: 0x06001169 RID: 4457 RVA: 0x0008D340 File Offset: 0x0008B540
	public global::CharFileInfoCoordinateFemale femaleCoordinateInfo { get; set; }

	// Token: 0x17000271 RID: 625
	// (get) Token: 0x0600116A RID: 4458 RVA: 0x0008D34C File Offset: 0x0008B54C
	// (set) Token: 0x0600116B RID: 4459 RVA: 0x0008D354 File Offset: 0x0008B554
	public global::CharFileInfoStatusFemale femaleStatusInfo { get; set; }

	// Token: 0x17000272 RID: 626
	// (get) Token: 0x0600116C RID: 4460 RVA: 0x0008D360 File Offset: 0x0008B560
	// (set) Token: 0x0600116D RID: 4461 RVA: 0x0008D368 File Offset: 0x0008B568
	public global::CharFileInfoParameterFemale femaleParameterInfo { get; set; }

	// Token: 0x0600116E RID: 4462 RVA: 0x0008D374 File Offset: 0x0008B574
	public override bool LoadFromSBPR(string path)
	{
		global::CharSave_SexyBeachPR charSave_SexyBeachPR = new global::CharSave_SexyBeachPR(global::CharSave_SexyBeachPR.ConvertType.HoneySelect);
		if (!charSave_SexyBeachPR.LoadCharaFile(path))
		{
			return false;
		}
		global::CharSave_SexyBeachPR.SaveData savedata = charSave_SexyBeachPR.savedata;
		if (savedata.sex == 0)
		{
			global::Debug.LogWarning("キャラファイルの性別が違います");
			return false;
		}
		this.charaFileName = savedata.fileName;
		this.charaFilePNG = savedata.pngData;
		this.femaleCustomInfo.personality = savedata.personality;
		this.femaleCustomInfo.name = savedata.name;
		this.femaleCustomInfo.headId = savedata.headId;
		for (int i = 0; i < savedata.shapeBody.Length; i++)
		{
			this.femaleCustomInfo.shapeValueBody[i] = global::CharFile.ClampEx(savedata.shapeBody[i], 0f, 1f);
		}
		for (int j = 0; j < savedata.shapeFace.Length; j++)
		{
			this.femaleCustomInfo.shapeValueFace[j] = global::CharFile.ClampEx(savedata.shapeFace[j], 0f, 1f);
		}
		for (int k = 0; k < this.femaleCustomInfo.hairId.Length; k++)
		{
			this.femaleCustomInfo.hairId[k] = savedata.hairId[k];
			savedata.hairColor[k].CopyToHoneySelect(this.femaleCustomInfo.hairColor[k]);
			savedata.hairAcsColor[k].CopyToHoneySelect(this.femaleCustomInfo.hairAcsColor[k]);
		}
		this.femaleCustomInfo.hairType = savedata.hairType;
		this.femaleCustomInfo.texFaceId = savedata.texFaceId;
		savedata.skinColor.CopyToHoneySelect(this.femaleCustomInfo.skinColor);
		this.femaleCustomInfo.texEyeshadowId = savedata.texEyeshadowId;
		savedata.eyeshadowColor.CopyToHoneySelect(this.femaleCustomInfo.eyeshadowColor);
		this.femaleCustomInfo.texCheekId = savedata.texCheekId;
		savedata.cheekColor.CopyToHoneySelect(this.femaleCustomInfo.cheekColor);
		this.femaleCustomInfo.texLipId = savedata.texLipId;
		savedata.lipColor.CopyToHoneySelect(this.femaleCustomInfo.lipColor);
		this.femaleCustomInfo.texTattoo_fId = savedata.texTattoo_fId;
		savedata.tattoo_fColor.CopyToHoneySelect(this.femaleCustomInfo.tattoo_fColor);
		this.femaleCustomInfo.texMoleId = savedata.texMoleId;
		savedata.moleColor.CopyToHoneySelect(this.femaleCustomInfo.moleColor);
		this.femaleCustomInfo.matEyebrowId = savedata.matEyebrowId;
		savedata.eyebrowColor.CopyToHoneySelect(this.femaleCustomInfo.eyebrowColor);
		this.femaleCustomInfo.matEyelashesId = savedata.matEyelashesId;
		savedata.eyelashesColor.CopyToHoneySelect(this.femaleCustomInfo.eyelashesColor);
		this.femaleCustomInfo.matEyeLId = savedata.matEyeLId;
		savedata.eyeLColor.CopyToHoneySelect(this.femaleCustomInfo.eyeLColor);
		this.femaleCustomInfo.matEyeRId = savedata.matEyeRId;
		savedata.eyeRColor.CopyToHoneySelect(this.femaleCustomInfo.eyeRColor);
		this.femaleCustomInfo.matEyeHiId = savedata.matEyeHiId;
		savedata.eyeHiColor.CopyToHoneySelect(this.femaleCustomInfo.eyeHiColor);
		savedata.eyeWColor.CopyToHoneySelect(this.femaleCustomInfo.eyeWColor);
		this.femaleCustomInfo.texFaceDetailId = 0;
		this.femaleCustomInfo.faceDetailWeight = 0.5f;
		this.femaleCustomInfo.texBodyId = 0;
		this.femaleCustomInfo.texSunburnId = savedata.texSunburnId;
		savedata.sunburnColor.CopyToHoneySelect(this.femaleCustomInfo.sunburnColor);
		this.femaleCustomInfo.texTattoo_bId = savedata.texTattoo_bId;
		savedata.tattoo_bColor.CopyToHoneySelect(this.femaleCustomInfo.tattoo_bColor);
		this.femaleCustomInfo.matNipId = savedata.matNipId;
		savedata.nipColor.CopyToHoneySelect(this.femaleCustomInfo.nipColor);
		this.femaleCustomInfo.matUnderhairId = savedata.matUnderhairId;
		savedata.underhairColor.CopyToHoneySelect(this.femaleCustomInfo.underhairColor);
		savedata.nailColor.CopyToHoneySelect(this.femaleCustomInfo.nailColor);
		this.femaleCustomInfo.areolaSize = savedata.nipSize;
		this.femaleCustomInfo.texBodyDetailId = savedata.texBodyId + 1;
		this.femaleCustomInfo.bodyDetailWeight = savedata.bodyDetailWeight;
		this.femaleCustomInfo.bustSoftness = savedata.bustSoftness;
		this.femaleCustomInfo.bustWeight = savedata.bustWeight;
		global::CharFileInfoClothesFemale charFileInfoClothesFemale = new global::CharFileInfoClothesFemale();
		charFileInfoClothesFemale.swimType = false;
		charFileInfoClothesFemale.clothesId[0] = savedata.coord[0].clothesTopId;
		savedata.coord[0].clothesTopColor.CopyToHoneySelect(charFileInfoClothesFemale.clothesColor[0]);
		charFileInfoClothesFemale.clothesId[1] = savedata.coord[0].clothesBotId;
		savedata.coord[0].clothesBotColor.CopyToHoneySelect(charFileInfoClothesFemale.clothesColor[1]);
		charFileInfoClothesFemale.clothesId[2] = savedata.coord[0].braId;
		savedata.coord[0].braColor.CopyToHoneySelect(charFileInfoClothesFemale.clothesColor[2]);
		charFileInfoClothesFemale.clothesId[3] = savedata.coord[0].shortsId;
		savedata.coord[0].shortsColor.CopyToHoneySelect(charFileInfoClothesFemale.clothesColor[3]);
		charFileInfoClothesFemale.clothesId[7] = savedata.coord[0].glovesId;
		savedata.coord[0].glovesColor.CopyToHoneySelect(charFileInfoClothesFemale.clothesColor[7]);
		charFileInfoClothesFemale.clothesId[8] = savedata.coord[0].panstId;
		savedata.coord[0].panstColor.CopyToHoneySelect(charFileInfoClothesFemale.clothesColor[8]);
		charFileInfoClothesFemale.clothesId[9] = savedata.coord[0].socksId;
		savedata.coord[0].socksColor.CopyToHoneySelect(charFileInfoClothesFemale.clothesColor[9]);
		charFileInfoClothesFemale.clothesId[10] = savedata.coord[0].shoesId;
		savedata.coord[0].shoesColor.CopyToHoneySelect(charFileInfoClothesFemale.clothesColor[10]);
		for (int l = 0; l < 5; l++)
		{
			charFileInfoClothesFemale.accessory[l].type = savedata.accessory[0, l].accessoryType;
			charFileInfoClothesFemale.accessory[l].id = savedata.accessory[0, l].accessoryId;
			charFileInfoClothesFemale.accessory[l].parentKey = savedata.accessory[0, l].parentKey;
			charFileInfoClothesFemale.accessory[l].addPos = savedata.accessory[0, l].plusPos;
			charFileInfoClothesFemale.accessory[l].addRot = savedata.accessory[0, l].plusRot;
			charFileInfoClothesFemale.accessory[l].addScl = savedata.accessory[0, l].plusScl;
			savedata.accessoryColor[0, l].CopyToHoneySelect(charFileInfoClothesFemale.accessory[l].color);
		}
		this.femaleCoordinateInfo.SetInfo(global::CharDefine.CoordinateType.type00, charFileInfoClothesFemale);
		global::CharFileInfoClothesFemale charFileInfoClothesFemale2 = new global::CharFileInfoClothesFemale();
		charFileInfoClothesFemale2.swimType = true;
		charFileInfoClothesFemale2.clothesId[4] = savedata.coord[1].swimsuitId;
		savedata.coord[1].swimsuitColor.CopyToHoneySelect(charFileInfoClothesFemale2.clothesColor[4]);
		charFileInfoClothesFemale2.clothesId[5] = savedata.coord[1].swimTopId;
		savedata.coord[1].swimTopColor.CopyToHoneySelect(charFileInfoClothesFemale2.clothesColor[5]);
		charFileInfoClothesFemale2.clothesId[6] = savedata.coord[1].swimBotId;
		savedata.coord[1].swimBotColor.CopyToHoneySelect(charFileInfoClothesFemale2.clothesColor[6]);
		charFileInfoClothesFemale2.clothesId[7] = savedata.coord[1].glovesId;
		savedata.coord[1].glovesColor.CopyToHoneySelect(charFileInfoClothesFemale2.clothesColor[7]);
		charFileInfoClothesFemale2.clothesId[8] = savedata.coord[1].panstId;
		savedata.coord[1].panstColor.CopyToHoneySelect(charFileInfoClothesFemale2.clothesColor[8]);
		charFileInfoClothesFemale2.clothesId[9] = savedata.coord[1].socksId;
		savedata.coord[1].socksColor.CopyToHoneySelect(charFileInfoClothesFemale2.clothesColor[9]);
		charFileInfoClothesFemale2.clothesId[10] = savedata.coord[1].shoesId;
		savedata.coord[1].shoesColor.CopyToHoneySelect(charFileInfoClothesFemale2.clothesColor[10]);
		charFileInfoClothesFemale2.hideSwimOptTop = (savedata.stateSwimOptTop != 0);
		charFileInfoClothesFemale2.hideSwimOptBot = (savedata.stateSwimOptBot != 0);
		for (int m = 0; m < 5; m++)
		{
			charFileInfoClothesFemale2.accessory[m].type = savedata.accessory[1, m].accessoryType;
			charFileInfoClothesFemale2.accessory[m].id = savedata.accessory[1, m].accessoryId;
			charFileInfoClothesFemale2.accessory[m].parentKey = savedata.accessory[1, m].parentKey;
			charFileInfoClothesFemale2.accessory[m].addPos = savedata.accessory[1, m].plusPos;
			charFileInfoClothesFemale2.accessory[m].addRot = savedata.accessory[1, m].plusRot;
			charFileInfoClothesFemale2.accessory[m].addScl = savedata.accessory[1, m].plusScl;
			savedata.accessoryColor[1, m].CopyToHoneySelect(charFileInfoClothesFemale2.accessory[m].color);
		}
		this.femaleCoordinateInfo.SetInfo(global::CharDefine.CoordinateType.type02, charFileInfoClothesFemale2);
		base.ChangeCoordinateType(global::CharDefine.CoordinateType.type00);
		return true;
	}
}
